package com.yuqih.common.task;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ExecutorServiceContainer {

	public final ExecutorService cachedThreadExecutor = Executors.newCachedThreadPool();
	
	/**
	 * @return the cachedThreadExecutor
	 */
	public ExecutorService getCachedThreadExecutor() {
		return cachedThreadExecutor;
	}

	public void destroy() {
		cachedThreadExecutor.shutdown();
	}
	
}
